/**
 * @Author: Bobby
 * @Date: 2022-03-08 10:12:29
 * @LastEditTime: 2022-03-18 16:56:36
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\mixin\refs\inject.js
 * @CIMC-V2
 */
export default {
  inject: {
    vuiComponents: {
      from: 'vuiComponents',
      default: [],
    },
    setChildrenRef: {
      // eslint-disable-next-line prettier/prettier
      default: () => { },
    },
    getParentRef: {
      from: 'getRef',
      // eslint-disable-next-line prettier/prettier
      default: () => { },
    },
    getChildrenRef: {
      from: 'getChildrenRef',
      // eslint-disable-next-line prettier/prettier
      default: () => { },
    },
  },
  methods: {
    vSetRef() {
      return this.setChildrenRef(this.info._id || this.getSubPageInfo._id, this)
    },
  },
}
